import React from "react";
import { Navigate } from "react-router-dom";
import Home from '../pages/home';
import Login from '../pages/login';

export default [
	{
		path:'/login',
		element:<Login/>
	},
	{
		path:'/home',
		element:<Home/>
	},
	{
		path:'/',
		element:<Navigate to="/login"/>
	}
];

// export default () => (
//   <Routes>
//       <Route path='/home' element={<Home />} />
//       <Route path='/login' element={<Login />} />
//       <Redirect to='/login' />
//   </Routes>
// )